package cn.alpha.common.springmvc;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

public class CustomConfigurableWebBindingInitializer extends ConfigurableWebBindingInitializer 
{
	private String fieldMarkerPrefix;
	
	@Override
	public void initBinder(WebDataBinder binder, WebRequest request)
	{
		super.initBinder(binder, request);
		binder.setFieldMarkerPrefix(fieldMarkerPrefix);
	}

	public String getFieldMarkerPrefix() {
		return fieldMarkerPrefix;
	}

	public void setFieldMarkerPrefix(String fieldMarkerPrefix) {
		this.fieldMarkerPrefix = fieldMarkerPrefix;
	}
}
